#!/bin/bash

CURRENT_DIR="${ROOT_DIR}/plugin"

# 编译 wdt_jh
build_wdt_jh() {
    echo "Building wdt_jh..."
    make build TARGET=wdt_jh
    make install TARGET=wdt_jh
}

# 编译 wdt_tyc
build_wdt_tyc() {
    echo "Building wdt_tyc..."
    make build TARGET=wdt_tyc
    make install TARGET=wdt_tyc
}

# 主函数
main() {
    echo "Starting build plugin process..."
    cd "${CURRENT_DIR}"
    build_wdt_jh
    build_wdt_tyc
    cd -
    echo "Build plugin process completed."
}

# 执行主函数
main
